import Vue from "vue";
import BankAmountInput from "./BankAmountInput/index.vue";
import BankClock from "./BankClock/index.vue";
import BankShadowBox from './BankShadowBox/index.vue'

const comArr = [BankClock, BankAmountInput, BankShadowBox];

comArr.forEach((item) => {
  Vue.component(item.name, item); // item.name就是引入组件中的name属性，所以每个组件都需要name
});

// 注册组件
const install = (Vue) => {
  comArr.forEach((item) => {
    Vue.component(item.name, item); // item.name就是引入组件中的name属性，所以每个组件都需要name
  });
};

export default install;
